package com.adam.management.response;

import lombok.Data;

import java.util.List;

/**
 * @projectName: adam-management-system
 * @description:
 * @author: Adam
 * @create: 2019-11-04 21:01
 **/
@Data
public class ListModel<T> {

    private int total;

    private List<T> rows;

    public ListModel(){}

    public ListModel(List<T> data){
        this.total = data.size();
        this.rows = data;
    }
}
